#include"Cmn.h"
class MyApp:public CWinApp
{
	MyWnd *wnd;
public:
	BOOL InitInstance()
	{
//TODO: call AfxInitRichEdit2() to initialize richedit2 library.
		AfxSocketInit();
		wnd=new MyWnd();
		m_pMainWnd=wnd;
		m_pMainWnd->SetWindowPos(wnd,200,100,700,800,1);
		m_pMainWnd->ShowWindow(1);
		return 1;
	}
};
MyApp theApp;
/*int WINAPI WinMain(HINSTANCE,HINSTANCE,LPSTR,int){
	AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0);
	CString WC = AfxRegisterWndClass(CS_DBLCLKS|CS_VREDRAW|CS_HREDRAW,::LoadCursor(NULL, IDC_ARROW),(HBRUSH) ::GetStockObject(WHITE_BRUSH),::LoadIcon(NULL, IDI_APPLICATION));
	MSG msg;
	while (GetMessage(&msg, NULL, 0, 0)){
		TranslateMessage(&msg);
		DispatchMessage(&msg);
	}
	return 0;
}*/